package api

const wechatUrl = "https://api.weixin.qq.com/"

type wechatApi struct{}

var WechatApi = new(wechatApi)

// WechatLogin 微信登录
func (r *wechatApi) WechatLogin(code string) (*WechatLoginResponse, error) {
    return nil, nil
    //var resp = new(WechatLoginResponse)
    //uri := "https://api.weixin.qq.com/sns/jscode2session?appid=" + global.Settings.WechatInfo.AppID + "&secret=" + global.Settings.WechatInfo.AppSecret + "&js_code=" + code + "&grant_type=authorization_code"
    //dto := &utils2.RequestForm{
    //    Uri:    uri,
    //    Resp:   resp,
    //}
    //err := utils2.Client.Get(dto)
    //if err != nil {
    //    return nil, err
    //}
    //
    //return resp, nil
}